package eu.flexthreading.test;

import org.jcsp.lang.*;
public class SendProcess implements CSProcess 
{
	private ChannelOutput out;
	private String name;
	
	public SendProcess(ChannelOutput out, String name) 
	{
		this.out = out;
		this.name = name;
	}
	
	public void run() 
	{
		int i = 0;
		while (true) 
		{
			i = (i + 1) % 200;
			out.write(name + ": " + new Integer(i));
		}
	}
}